package org.linlinjava.litemall.admin.service;

import com.alibaba.fastjson.JSONObject;
import org.linlinjava.litemall.core.util.HttpUtil;
import org.linlinjava.litemall.core.util.ResponseUtil;
import org.linlinjava.litemall.db.service.LitemallGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author Administrator
 */
@Service
public class ISBNBookInfoService {
    @Autowired
    private AdminGoodsService adminGoodsService;

    public Object getBookInfo(String key, String sub) {
        String params = "key=" + key + "&" + "sub=" + sub;
        String url = "http://feedback.api.juhe.cn/ISBN";
        return HttpUtil.sendGet(url, params);
    }
}
